Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update Portable Text dependencies #27

Merged
merged 3 commits into from
Aug 24, 2023

Conversation

juice49
Copy link
Contributor

@juice49 juice49 commented Jun 23, 2023

This pull request updates the project to use the latest versions of @portabletext/react and @portabletext/types. This update was previously blocked by the removal of PortableTextComponentsProvider context. Instead, we now use the mergeComponents function to merge the React Native components from this project with any custom components the consumer specifies via the components prop.

Because the indexes for list items has been fixed in the @portabletext/react package, I've regenerated the test snapshots to reflect the correct ordered list numbering.

@socket-security
Copy link

New and updated dependency changes detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives1 Size Publisher
@portabletext/react ⬆️ 1.0.6...3.0.2 None +1/-2 279 kB sanity-io

🚮 Removed packages: @portabletext/[email protected]

Footnotes

  1. https://docs.socket.dev

Copy link
Member

@stipsan stipsan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks good to 🚀

@stipsan stipsan merged commit caa183a into portabletext:main Aug 24, 2023
2 of 7 checks passed
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants